<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Posteingang von ${user.vorname} ${user.nachname}</title>
<link rel="stylesheet"
      href="jsp/css/inbox.css"
      type="text/css"/>
</head>
<body>

<jsp:include page="../utils/navigationObenAngemeldet.jsp" />

<c:if test='${user.email == foreignUser.email}'>
	<div class="zweitnavigation">
		<ul class="zweitnavi">
			<li class="zweitnaviaufzaehlung"><a target="_self"
				href="user?operation=modify">Konto bearbeiten</a>
			</li>
			<li class="zweitnaviaufzaehlung"><a target="_self"
				href="user?operation=newMessage">Nachricht verfassen</a>
			</li>
		</ul>
	</div>
</c:if>


<c:forEach var="nachrichten" items="${messageList}">
	<div class="nachricht">
		<ul class="aufzaehlen">
			<li>
				<b>Absender:</b> ${nachrichten.absender} <b>Datum:</b> ${nachrichten.datum}
			</li>
			<li>
				<b>Betreff:</b><br>${nachrichten.betreff}
			</li>
			<li>
				<b>Inhalt:</b><br>${nachrichten.inhalt}
			</li>
		</ul>
	</div>
</c:forEach>

<jsp:include page="../utils/mininavi.jsp" />

</body>
</html>